cmdshell.cmd['gnome-open'] = {
	help : 'gnome opener emulator',
	run : function(res){
		cmdshell.debuger('[CMD] Gnome Opener is running');
		
		var arr = res.split(" "), dataout = '...', widthUL = $('ul.tabs-list').width();
		
		if(!arr[1]){
			return 'Sorry: Nothing to open';
		}else{
			if(arr[1].match(/.*\.rb$/)){
				widthUL += $("a.tab-tittle[href=#panel1]").click().find('em').html(arr[1]).width();
				$('ul.tabs-list').width(widthUL);
				CA.editor.selectAll();
				CA.editor.removeToLineStart();
				return 'Opening '+arr[1]+' in the editor';
			}else{
				return 'Not found';
			}
		}
	}
}

